package com.zbp.config.mybatisflex;

import com.mybatisflex.core.mybatis.FlexConfiguration;
import com.mybatisflex.spring.boot.ConfigurationCustomizer;
import org.apache.ibatis.logging.stdout.StdOutImpl;
import org.springframework.context.annotation.Configuration;

/**
 * packageName com.zbp.config.mybatisflex
 *
 * @author zbp
 * @version JDK 8
 * @fileName MyBatisflexConfigurationCustomizer.java
 * @date 2023-11-16
 * @description 配置MyBatisflexSQL打印
 */
@Configuration
public class MyBatisflexConfigurationCustomizer implements ConfigurationCustomizer {

    @Override
    public void customize(FlexConfiguration configuration) {
        configuration.setLogImpl(StdOutImpl.class);
    }

}

